{template 'common/header'}
<div class="main">
	<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" id="form1">
		<ul class="nav nav-tabs" role="tablist">
		    <li role="presentation" class="active"><a href="#basic" role="tab" data-toggle="tab">基础信息设置</a></li>
		    <li role="presentation" style="display:{if $_W['role']!='founder'}block{else}block{/if};"><a href="#myTab2" role="tab" data-toggle="tab">系统设置</a></li>
		    <li role="presentation" style="display:{if $_W['role']!='founder'}block{else}block{/if};"><a href="#myTab3" role="tab" data-toggle="tab">美团API设置</a></li>
		    <li role="presentation" style="display:{if $_W['role']!='founder'}block{else}block{/if};"><a href="#myTab4" role="tab" data-toggle="tab">淘宝/饿了么API设置</a></li>
		    <li role="presentation" style="display:{if $_W['role']!='founder'}block{else}block{/if};"><a href="#myTab6" role="tab" data-toggle="tab">京东/拼多多/唯品会设置</a></li>
			<li role="presentation"><a href="#card" role="tab" data-toggle="tab">卡券版首页设置</a></li>
			<li role="presentation"><a href="#waimai" role="tab" data-toggle="tab">外卖1版首页设置</a></li>
			<li role="presentation"><a href="#waimaitt" role="tab" data-toggle="tab">外卖2版首页设置</a></li>
			<li role="presentation"><a href="#bao" role="tab" data-toggle="tab">优惠线报页设置</a></li>
			<li role="presentation"><a href="#day" role="tab" data-toggle="tab">每日精选页设置</a></li>
			<li role="presentation"><a href="#job" role="tab" data-toggle="tab">计划任务</a></li>
		</ul>
		
		
		<div class="tab-content">
			<div role="tabpanel" class="tab-pane active panel panel-default main" id="basic">
			<div class="panel-heading">基础信息设置</div>
			<div class="panel-body">	
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">平台名称</label>
					<div class="col-sm-9 col-xs-12">
					  <input type="text" name="data[name]" class="form-control" placeholder="" value="{$settings['name']}" /> 
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">分享标题</label>
					<div class="col-sm-9 col-xs-12">
					  <input type="text" name="data[sharetitle]" class="form-control" placeholder="" value="{$settings['sharetitle']}" /> 
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">分享图片：</label>
					<div class="col-sm-9 col-xs-12">
						{php echo tpl_form_field_image('data[sharethumb]', $settings['sharethumb'], '', array('extras' => array('text' => 'readonly')))}
						<span class="help-block" style="color:red;">*图片尺寸：420*335</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">客服点我发送图片：</label>
					<div class="col-sm-9 col-xs-12">
						{php echo tpl_form_field_image('data[dianwo]', $settings['dianwo'], '', array('extras' => array('text' => 'readonly')))}
						<span class="help-block" style="color:red;">*图片尺寸：420*335</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">首页版面：</label>
					<div class="col-sm-9 col-xs-12">
						<label class="radio-inline"><input type="radio" name="data[index_type]" value="1" {if $settings['index_type'] == 1}checked="true"{/if} /> 充值卡券版面</label>
						&nbsp;&nbsp;&nbsp;
						<label class="radio-inline"><input type="radio" name="data[index_type]" value="2" {if $settings['index_type'] == 2}checked="true"{/if} /> 外卖1版面</label>
						&nbsp;&nbsp;&nbsp;
						<label class="radio-inline"><input type="radio" name="data[index_type]" value="3" {if $settings['index_type'] == 3}checked="true"{/if} /> 外卖2版面</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">苹果IOS系统是否强制显示外卖专版：</label>
					<div class="col-sm-9 col-xs-12">
						<label class="radio-inline"><input type="radio" name="data[ios_index_type]" value="1" {if $settings['ios_index_type'] == 1}checked="true"{/if} /> 强制显示</label>
						&nbsp;&nbsp;&nbsp;
						<label class="radio-inline"><input type="radio" name="data[ios_index_type]" value="0" {if $settings['ios_index_type'] == 0}checked="true"{/if} /> 不强制显示</label>
						<span class="help-block" style="color:red;">*强制显示后，苹果手机将自动切换到外卖专版</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否隐藏底部菜单：</label>
					<div class="col-sm-9 col-xs-12">
						<label class="radio-inline"><input type="radio" name="data[is_hide_menu]" value="1" {if $settings['is_hide_menu'] == 1}checked="true"{/if} /> 隐藏</label>
						&nbsp;&nbsp;&nbsp;
						<label class="radio-inline"><input type="radio" name="data[is_hide_menu]" value="0" {if $settings['is_hide_menu'] == 0}checked="true"{/if} /> 不隐藏</label>
					</div>
				</div>
				
			</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="waimaitt">
				<div class="panel-heading">外卖2版首页设置</div>
				<div class="panel-body">
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_navigationBarBackgroundColor]" class="form-control" placeholder="" value="{if $settings['waimaitt_navigationBarBackgroundColor']}{$settings['waimaitt_navigationBarBackgroundColor']}{else}#e25947{/if}" />
						  <span class="help-block" style="color:red;">*顶部导航栏背景色，默认为#e25947红色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏标题颜色</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[waimaitt_navigationBarTextStyle]" value="#000000" {if $settings['waimaitt_navigationBarTextStyle'] == '#000000'}checked="true"{/if} /> 黑色</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[waimaitt_navigationBarTextStyle]" value="#ffffff" {if $settings['waimaitt_navigationBarTextStyle'] == '#ffffff'}checked="true"{else}{if $settings['waimaitt_navigationBarTextStyle'] == ''}checked="true"{/if}{/if} /> 白色</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏标题</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_navigationBarTitleText]" class="form-control" placeholder="" value="{if $settings['waimaitt_navigationBarTitleText']}{$settings['waimaitt_navigationBarTitleText']}{else}首页{/if}" />
						  <span class="help-block" style="color:red;">*顶部导航栏标题，默认为：首页</span>
						</div>
					</div>
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">页面背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_bgcolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_bgcolor']}{$settings['waimaitt_bgcolor']}{else}#ededed{/if}" />
						  <span class="help-block" style="color:red;">*页面背景色，默认为#ededed浅灰色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部轮播背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_lunbobannerbgcolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_lunbobannerbgcolor']}{$settings['waimaitt_lunbobannerbgcolor']}{else}#FFFFFF{/if}" />
						  <span class="help-block" style="color:red;">*顶部轮播背景色，默认为#FFFFFF白色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部轮播半幅背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_lunbobgcolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_lunbobgcolor']}{$settings['waimaitt_lunbobgcolor']}{else}#e25947{/if}" />
						  <span class="help-block" style="color:red;">*顶部轮播半幅背景色，默认为#e25947红色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部轮播背景上部高度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_lunbobgupheight]" class="form-control" placeholder="" value="{if $settings['waimaitt_lunbobgupheight']}{$settings['waimaitt_lunbobgupheight']}{else}55%{/if}" />
						  <span class="help-block" style="color:red;">*轮播背景上部高度，默认为55%</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部轮播背景下部高度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_lunbobgdownheight]" class="form-control" placeholder="" value="{if $settings['waimaitt_lunbobgdownheight']}{$settings['waimaitt_lunbobgdownheight']}{else}40{/if}" />
						  <span class="help-block" style="color:red;">*轮播背景下部高度，默认为40</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部轮播背景下部圆角尺寸</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_lunbobgdownradius]" class="form-control" placeholder="" value="{if $settings['waimaitt_lunbobgdownradius']}{$settings['waimaitt_lunbobgdownradius']}{else}50%{/if}" />
						  <span class="help-block" style="color:red;">*轮播背景下部圆角尺寸，默认为50%</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播宽度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_lunbo_width]" class="form-control" placeholder="" value="{if $settings['waimaitt_lunbo_width']}{$settings['waimaitt_lunbo_width']}{else}750{/if}" />
						  <span class="help-block" style="color:red;">*轮播组件宽度，默认为750</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播高度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_lunbo_height]" class="form-control" placeholder="" value="{if $settings['waimaitt_lunbo_height']}{$settings['waimaitt_lunbo_height']}{else}150{/if}" />
						  <span class="help-block" style="color:red;">*轮播组件宽度，默认为150</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播图片圆角尺寸</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_lunbo_borderRadius]" class="form-control" placeholder="" value="{if $settings['waimaitt_lunbo_borderRadius']}{$settings['waimaitt_lunbo_borderRadius']}{else}10{/if}" />
						  <span class="help-block" style="color:red;">*轮播图片圆角尺寸，默认为10</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播图片间距</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_lunbo_spacing]" class="form-control" placeholder="" value="{if $settings['waimaitt_lunbo_spacing']}{$settings['waimaitt_lunbo_spacing']}{else}40{/if}" />
						  <span class="help-block" style="color:red;">*轮播图片间距，默认为40</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播非激活项目的缩小间距</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_lunbo_padding]" class="form-control" placeholder="" value="{if $settings['waimaitt_lunbo_padding']}{$settings['waimaitt_lunbo_padding']}{else}26{/if}" />
						  <span class="help-block" style="color:red;">*轮播非激活项目的缩小间距，默认为26</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_daohang_bgcolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_daohang_bgcolor']}{$settings['waimaitt_daohang_bgcolor']}{else}#FFFFFF{/if}" />
						  <span class="help-block" style="color:red;">*导航背景色，默认为白色#FFFFFF</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航图标圆角尺寸</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_daohang_border_radius]" class="form-control" placeholder="" value="{if $settings['waimaitt_daohang_border_radius']}{$settings['waimaitt_daohang_border_radius']}{else}50%{/if}" />
						  <span class="help-block" style="color:red;">*导航图标圆角尺寸，默认为50%</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">单个导航宽度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_daohang_width]" class="form-control" placeholder="" value="{if $settings['waimaitt_daohang_width']}{$settings['waimaitt_daohang_width']}{else}150{/if}" />
						  <span class="help-block" style="color:red;">*单个导航宽度，默认为150，填150一排放5个图标，填187.5一排放4个图标，填250一排可以放3个图标</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">单个导航图片宽度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_daohang_iconwidth]" class="form-control" placeholder="" value="{if $settings['waimaitt_daohang_iconwidth']}{$settings['waimaitt_daohang_iconwidth']}{else}110{/if}" />
						  <span class="help-block" style="color:red;">*单个导航图片宽度，默认为110</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">单个导航图片高度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_daohang_iconheight]" class="form-control" placeholder="" value="{if $settings['waimaitt_daohang_iconheight']}{$settings['waimaitt_daohang_iconheight']}{else}110{/if}" />
						  <span class="help-block" style="color:red;">*单个导航图片高度，默认为110</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航图标阴影颜色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_daohang_box_shadow_bgcolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_daohang_box_shadow_bgcolor']}{$settings['waimaitt_daohang_box_shadow_bgcolor']}{else}#FFFFFF{/if}" />
						  <span class="help-block" style="color:red;">*导航图标阴影颜色，默认为#FFFFFF白色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航图标阴影大小</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_daohang_box_shadow]" class="form-control" placeholder="" value="{if $settings['waimaitt_daohang_box_shadow']}{$settings['waimaitt_daohang_box_shadow']}{else}20{/if}" />
						  <span class="help-block" style="color:red;">*导航图标阴影大小，默认为20</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航文字大小</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_daohang_textsize]" class="form-control" placeholder="" value="{if $settings['waimaitt_daohang_textsize']}{$settings['waimaitt_daohang_textsize']}{else}26{/if}" />
						  <span class="help-block" style="color:red;">*导航文字大小，默认为26</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航文字颜色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_daohang_textcolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_daohang_textcolor']}{$settings['waimaitt_daohang_textcolor']}{else}#000000{/if}" />
						  <span class="help-block" style="color:red;">*导航文字颜色，默认为白色#000000</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">工具栏背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_tools_bgcolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_tools_bgcolor']}{$settings['waimaitt_tools_bgcolor']}{else}#FFFFFF{/if}" />
						  <span class="help-block" style="color:red;">*工具栏背景色，默认为白色#FFFFFF</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">工具栏底部圆角尺寸</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_tools_radius]" class="form-control" placeholder="" value="{if $settings['waimaitt_tools_radius']}{$settings['waimaitt_tools_radius']}{else}20{/if}" />
						  <span class="help-block" style="color:red;">*工具栏底部圆角尺寸，默认为20（单位为：rpx）</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">工具栏添加小程序图标：</label>
						<div class="col-sm-9 col-xs-12">
							{php echo tpl_form_field_image('data[waimaitt_tools_addpic]', $settings['waimaitt_tools_addpic'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:red;">*图标尺寸：200*200，不上传则使用默认图标</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">工具栏添加小程序文字：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_tools_addtext]" class="form-control" placeholder="" value="{if $settings['waimaitt_tools_addtext']}{$settings['waimaitt_tools_addtext']}{else}添加小程序{/if}" />
						  <span class="help-block" style="color:red;">*工具栏添加小程序文字，默认为：添加小程序</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">工具栏分享给好友图标：</label>
						<div class="col-sm-9 col-xs-12">
							{php echo tpl_form_field_image('data[waimaitt_tools_sharepic]', $settings['waimaitt_tools_sharepic'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:red;">*图标尺寸：200*200，不上传则使用默认图标</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">工具栏分享给好友文字：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_tools_sharetext]" class="form-control" placeholder="" value="{if $settings['waimaitt_tools_sharetext']}{$settings['waimaitt_tools_sharetext']}{else}分享给好友{/if}" />
						  <span class="help-block" style="color:red;">*工具栏分享给好友文字，默认为：分享给好友</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">列表内容标题文字大小：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_list_textsize]" class="form-control" placeholder="" value="{if $settings['waimaitt_list_textsize']}{$settings['waimaitt_list_textsize']}{else}30{/if}" />
						  <span class="help-block" style="color:red;">*列表内容标题文字大小，默认为：30（单位为：rpx）</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">列表内容标题文字大小：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_list_textsize]" class="form-control" placeholder="" value="{if $settings['waimaitt_list_textsize']}{$settings['waimaitt_list_textsize']}{else}30{/if}" />
						  <span class="help-block" style="color:red;">*列表内容标题文字大小，默认为：30（单位为：rpx）</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">列表内容标题文字颜色：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_list_textcolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_list_textcolor']}{$settings['waimaitt_list_textcolor']}{else}#000000{/if}" />
						  <span class="help-block" style="color:red;">*列表内容标题文字颜色，默认为黑色：#000000</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">列表内容金额文字大小：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_list_jinesize]" class="form-control" placeholder="" value="{if $settings['waimaitt_list_jinesize']}{$settings['waimaitt_list_jinesize']}{else}52{/if}" />
						  <span class="help-block" style="color:red;">*列表内容金额文字大小，默认为：52（单位为：rpx）</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">列表内容金额文字颜色：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_list_jinecolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_list_jinecolor']}{$settings['waimaitt_list_jinecolor']}{else}#ff304d{/if}" />
						  <span class="help-block" style="color:red;">*列表内容金额文字颜色，默认为红色：#ff304d</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">列表内容金额单位文字大小：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_list_unitsize]" class="form-control" placeholder="" value="{if $settings['waimaitt_list_unitsize']}{$settings['waimaitt_list_unitsize']}{else}28{/if}" />
						  <span class="help-block" style="color:red;">*列表内容金额单位文字大小，默认为：28（单位为：rpx）</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">列表内容金额单位文字颜色：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_list_unitcolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_list_unitcolor']}{$settings['waimaitt_list_unitcolor']}{else}#ff304d{/if}" />
						  <span class="help-block" style="color:red;">*列表内容金额单位文字颜色，默认为红色：#ff304d</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">列表内容“今日仅剩”文字大小：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_list_jinsize]" class="form-control" placeholder="" value="{if $settings['waimaitt_list_jinsize']}{$settings['waimaitt_list_jinsize']}{else}28{/if}" />
						  <span class="help-block" style="color:red;">*列表内容“今日仅剩”文字大小，默认为：28（单位为：rpx）</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">列表内容“今日仅剩”文字颜色：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_list_jincolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_list_jincolor']}{$settings['waimaitt_list_jincolor']}{else}#aa1e3b{/if}" />
						  <span class="help-block" style="color:red;">*列表内容“今日仅剩”文字颜色，默认为深红色：#aa1e3b</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">列表内容“今日仅剩”背景色：</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimaitt_list_jinbgcolor]" class="form-control" placeholder="" value="{if $settings['waimaitt_list_jinbgcolor']}{$settings['waimaitt_list_jinbgcolor']}{else}#ffebe3{/if}" />
						  <span class="help-block" style="color:red;">*列表内容“今日仅剩”背景色，默认为浅红色：#ffebe3</span>
						</div>
					</div>
					
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="card">
				<div class="panel-heading">卡券版首页设置</div>
				<div class="panel-body">
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[card_navigationBarBackgroundColor]" class="form-control" placeholder="" value="{if $settings['card_navigationBarBackgroundColor']}{$settings['card_navigationBarBackgroundColor']}{else}#161921{/if}" />
						  <span class="help-block" style="color:red;">*顶部导航栏背景色，默认为#161921黑色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏标题颜色</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[card_navigationBarTextStyle]" value="#000000" {if $settings['card_navigationBarTextStyle'] == '#000000'}checked="true"{/if} /> 黑色</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[card_navigationBarTextStyle]" value="#ffffff" {if $settings['card_navigationBarTextStyle'] == '#ffffff'}checked="true"{else}{if $settings['card_navigationBarTextStyle'] == ''}checked="true"{/if}{/if} /> 白色</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏标题</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[card_navigationBarTitleText]" class="form-control" placeholder="" value="{if $settings['card_navigationBarTitleText']}{$settings['card_navigationBarTitleText']}{else}首页{/if}" />
						  <span class="help-block" style="color:red;">*顶部导航栏标题，默认为：首页</span>
						</div>
					</div>
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">页面背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[card_bgcolor]" class="form-control" placeholder="" value="{if $settings['card_bgcolor']}{$settings['card_bgcolor']}{else}#FFFFFF{/if}" />
						  <span class="help-block" style="color:red;">*页面背景色，默认为#FFFFFF白色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播宽度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[card_lunbo_width]" class="form-control" placeholder="" value="{if $settings['card_lunbo_width']}{$settings['card_lunbo_width']}{else}750{/if}" />
						  <span class="help-block" style="color:red;">*轮播组件宽度，默认为750</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播高度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[card_lunbo_height]" class="form-control" placeholder="" value="{if $settings['card_lunbo_height']}{$settings['card_lunbo_height']}{else}150{/if}" />
						  <span class="help-block" style="color:red;">*轮播组件宽度，默认为150</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播图片圆角尺寸</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[card_lunbo_borderRadius]" class="form-control" placeholder="" value="{if $settings['card_lunbo_borderRadius']}{$settings['card_lunbo_borderRadius']}{else}10{/if}" />
						  <span class="help-block" style="color:red;">*轮播图片圆角尺寸，默认为10</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播图片间距</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[card_lunbo_spacing]" class="form-control" placeholder="" value="{if $settings['card_lunbo_spacing']}{$settings['card_lunbo_spacing']}{else}40{/if}" />
						  <span class="help-block" style="color:red;">*轮播图片间距，默认为40</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播非激活项目的缩小间距</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[card_lunbo_padding]" class="form-control" placeholder="" value="{if $settings['card_lunbo_padding']}{$settings['card_lunbo_padding']}{else}26{/if}" />
						  <span class="help-block" style="color:red;">*轮播非激活项目的缩小间距，默认为26</span>
						</div>
					</div>
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="bao">
				<div class="panel-heading">优惠线报页设置</div>
				<div class="panel-body">
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[bao_navigationBarBackgroundColor]" class="form-control" placeholder="" value="{if $settings['bao_navigationBarBackgroundColor']}{$settings['bao_navigationBarBackgroundColor']}{else}#161921{/if}" />
						  <span class="help-block" style="color:red;">*顶部导航栏背景色，默认为#161921黑色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏标题颜色</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[bao_navigationBarTextStyle]" value="#000000" {if $settings['bao_navigationBarTextStyle'] == '#000000'}checked="true"{/if} /> 黑色</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[bao_navigationBarTextStyle]" value="#ffffff" {if $settings['bao_navigationBarTextStyle'] == '#ffffff'}checked="true"{else}{if $settings['bao_navigationBarTextStyle'] == ''}checked="true"{/if}{/if} /> 白色</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏标题</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[bao_navigationBarTitleText]" class="form-control" placeholder="" value="{if $settings['bao_navigationBarTitleText']}{$settings['bao_navigationBarTitleText']}{else}优惠线报{/if}" />
						  <span class="help-block" style="color:red;">*顶部导航栏标题，默认为：优惠线报</span>
						</div>
					</div>
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">页面背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[bao_bgcolor]" class="form-control" placeholder="" value="{if $settings['bao_bgcolor']}{$settings['bao_bgcolor']}{else}#FFFFFF{/if}" />
						  <span class="help-block" style="color:red;">*页面背景色，默认为#FFFFFF白色</span>
						</div>
					</div>
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="day">
				<div class="panel-heading">每日精选页设置</div>
				<div class="panel-body">
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[day_navigationBarBackgroundColor]" class="form-control" placeholder="" value="{if $settings['day_navigationBarBackgroundColor']}{$settings['day_navigationBarBackgroundColor']}{else}#161921{/if}" />
						  <span class="help-block" style="color:red;">*顶部导航栏背景色，默认为#161921黑色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏标题颜色</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[day_navigationBarTextStyle]" value="#000000" {if $settings['day_navigationBarTextStyle'] == '#000000'}checked="true"{/if} /> 黑色</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[day_navigationBarTextStyle]" value="#ffffff" {if $settings['day_navigationBarTextStyle'] == '#ffffff'}checked="true"{else}{if $settings['day_navigationBarTextStyle'] == ''}checked="true"{/if}{/if} /> 白色</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏标题</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[day_navigationBarTitleText]" class="form-control" placeholder="" value="{if $settings['day_navigationBarTitleText']}{$settings['day_navigationBarTitleText']}{else}每日精选{/if}" />
						  <span class="help-block" style="color:red;">*顶部导航栏标题，默认为：每日精选</span>
						</div>
					</div>
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">页面背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[day_bgcolor]" class="form-control" placeholder="" value="{if $settings['day_bgcolor']}{$settings['day_bgcolor']}{else}#FFFFFF{/if}" />
						  <span class="help-block" style="color:red;">*页面背景色，默认为#FFFFFF白色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播宽度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[day_lunbo_width]" class="form-control" placeholder="" value="{if $settings['day_lunbo_width']}{$settings['day_lunbo_width']}{else}750{/if}" />
						  <span class="help-block" style="color:red;">*轮播组件宽度，默认为750</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播高度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[day_lunbo_height]" class="form-control" placeholder="" value="{if $settings['day_lunbo_height']}{$settings['day_lunbo_height']}{else}150{/if}" />
						  <span class="help-block" style="color:red;">*轮播组件宽度，默认为150</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播图片圆角尺寸</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[day_lunbo_borderRadius]" class="form-control" placeholder="" value="{if $settings['day_lunbo_borderRadius']}{$settings['day_lunbo_borderRadius']}{else}10{/if}" />
						  <span class="help-block" style="color:red;">*轮播图片圆角尺寸，默认为10</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播图片间距</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[day_lunbo_spacing]" class="form-control" placeholder="" value="{if $settings['day_lunbo_spacing']}{$settings['day_lunbo_spacing']}{else}40{/if}" />
						  <span class="help-block" style="color:red;">*轮播图片间距，默认为40</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播非激活项目的缩小间距</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[day_lunbo_padding]" class="form-control" placeholder="" value="{if $settings['day_lunbo_padding']}{$settings['day_lunbo_padding']}{else}26{/if}" />
						  <span class="help-block" style="color:red;">*轮播非激活项目的缩小间距，默认为26</span>
						</div>
					</div>
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="waimai">
				<div class="panel-heading">外卖版首页设置</div>
				<div class="panel-body">
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimai_navigationBarBackgroundColor]" class="form-control" placeholder="" value="{if $settings['waimai_navigationBarBackgroundColor']}{$settings['waimai_navigationBarBackgroundColor']}{else}#e25947{/if}" />
						  <span class="help-block" style="color:red;">*顶部导航栏背景色，默认为#e25947红色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏标题颜色</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[waimai_navigationBarTextStyle]" value="#000000" {if $settings['waimai_navigationBarTextStyle'] == '#000000'}checked="true"{/if} /> 黑色</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[waimai_navigationBarTextStyle]" value="#ffffff" {if $settings['waimai_navigationBarTextStyle'] == '#ffffff'}checked="true"{/if} /> 白色</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部导航栏标题</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimai_navigationBarTitleText]" class="form-control" placeholder="" value="{if $settings['waimai_navigationBarTitleText']}{$settings['waimai_navigationBarTitleText']}{else}首页{/if}" />
						  <span class="help-block" style="color:red;">*顶部导航栏标题，默认为：首页</span>
						</div>
					</div>
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">页面背景色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[waimai_bgcolor]" class="form-control" placeholder="" value="{if $settings['waimai_bgcolor']}{$settings['waimai_bgcolor']}{else}#e25947{/if}" />
						  <span class="help-block" style="color:red;">*页面背景色，默认为#e25947红色</span>
						</div>
					</div>
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否显示使用步骤图片：</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[waimai_is_guidepic]" value="1" {if $settings['waimai_guidepic'] == 1}checked="true"{/if} /> 显示</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[waimai_is_guidepic]" value="0" {if $settings['waimai_guidepic'] == 0}checked="true"{/if} /> 隐藏</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">使用步骤图片：</label>
						<div class="col-sm-9 col-xs-12">
							{php echo tpl_form_field_image('data[waimai_guidepic]', $settings['waimai_guidepic'], '', array('extras' => array('text' => 'readonly')))}
							<span class="help-block" style="color:red;">*图片尺寸：700*200，不上传则使用默认图片</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播宽度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[lunbo_width]" class="form-control" placeholder="" value="{if $settings['lunbo_width']}{$settings['lunbo_width']}{else}750{/if}" />
						  <span class="help-block" style="color:red;">*轮播组件宽度，默认为750</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播高度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[lunbo_height]" class="form-control" placeholder="" value="{if $settings['lunbo_height']}{$settings['lunbo_height']}{else}150{/if}" />
						  <span class="help-block" style="color:red;">*轮播组件宽度，默认为150</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播图片圆角尺寸</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[lunbo_borderRadius]" class="form-control" placeholder="" value="{if $settings['lunbo_borderRadius']}{$settings['lunbo_borderRadius']}{else}10{/if}" />
						  <span class="help-block" style="color:red;">*轮播图片圆角尺寸，默认为10</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播图片间距</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[lunbo_spacing]" class="form-control" placeholder="" value="{if $settings['lunbo_spacing']}{$settings['lunbo_spacing']}{else}40{/if}" />
						  <span class="help-block" style="color:red;">*轮播图片间距，默认为40</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">轮播非激活项目的缩小间距</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[lunbo_padding]" class="form-control" placeholder="" value="{if $settings['lunbo_padding']}{$settings['lunbo_padding']}{else}26{/if}" />
						  <span class="help-block" style="color:red;">*轮播非激活项目的缩小间距，默认为26</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航图标圆角尺寸</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[daohang_border_radius]" class="form-control" placeholder="" value="{if $settings['daohang_border_radius']}{$settings['daohang_border_radius']}{else}50%{/if}" />
						  <span class="help-block" style="color:red;">*导航图标圆角尺寸，默认为50%</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">单个导航宽度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[daohang_width]" class="form-control" placeholder="" value="{if $settings['daohang_width']}{$settings['daohang_width']}{else}150{/if}" />
						  <span class="help-block" style="color:red;">*单个导航宽度，默认为150，填150一排放5个图标，填187.5一排放4个图标，填250一排可以放3个图标</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">单个导航图片宽度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[daohang_iconwidth]" class="form-control" placeholder="" value="{if $settings['daohang_iconwidth']}{$settings['daohang_iconwidth']}{else}110{/if}" />
						  <span class="help-block" style="color:red;">*单个导航图片宽度，默认为110</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">单个导航图片高度</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[daohang_iconheight]" class="form-control" placeholder="" value="{if $settings['daohang_iconheight']}{$settings['daohang_iconheight']}{else}110{/if}" />
						  <span class="help-block" style="color:red;">*单个导航图片高度，默认为110</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航图标阴影颜色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[daohang_box_shadow_bgcolor]" class="form-control" placeholder="" value="{if $settings['daohang_box_shadow_bgcolor']}{$settings['daohang_box_shadow_bgcolor']}{else}#FFFFFF{/if}" />
						  <span class="help-block" style="color:red;">*导航图标阴影颜色，默认为#FFFFFF白色</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航图标阴影大小</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[daohang_box_shadow]" class="form-control" placeholder="" value="{if $settings['daohang_box_shadow']}{$settings['daohang_box_shadow']}{else}20{/if}" />
						  <span class="help-block" style="color:red;">*导航图标阴影大小，默认为20</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航文字大小</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[daohang_textsize]" class="form-control" placeholder="" value="{if $settings['daohang_textsize']}{$settings['daohang_textsize']}{else}26{/if}" />
						  <span class="help-block" style="color:red;">*导航文字大小，默认为26</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">导航文字眼色</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[daohang_textcolor]" class="form-control" placeholder="" value="{if $settings['daohang_textcolor']}{$settings['daohang_textcolor']}{else}#000000{/if}" />
						  <span class="help-block" style="color:red;">*导航文字颜色，默认为白色#000000</span>
						</div>
					</div>
					
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="myTab2" style="display:{if $_W['role']!='founder'}{else}{/if};">
				<div class="panel-heading">系统设置</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">数据同步秘钥</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[xbapikey]" class="form-control" placeholder="" value="{$settings['xbapikey']}" />
						  <span class="help-block" style="color:red;">*请联系开发者获取</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">腾讯地图key</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[qqmap]" class="form-control" placeholder="" value="{$settings['qqmap']}" />
						  <span class="help-block" style="color:red;">*获取地址：https://map.qq.com</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">socket服务器地址</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[socket]" class="form-control" placeholder="" value="{$settings['socket']}" />
						  <span class="help-block" style="color:red;">*如果没有自己的则不填</span>
						</div>
					</div>
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="myTab3" style="display:{if $_W['role']!='founder'}{else}{/if};">
				<div class="panel-heading">美团API设置</div>
				<div class="panel-body">
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">美团API通道：</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[meituan_api_type]" value="0" {if $settings['meituan_api_type'] == 0}checked="true"{/if} /> 订单侠</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[meituan_api_type]" value="1" {if $settings['meituan_api_type'] == 1}checked="true"{/if} /> 美团官方</label>
							<span class="help-block" style="color:red;">*美团官方需要公司资质才能申请</span>
						</div>
					</div>
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">订单侠apikey</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[ddxapikey]" class="form-control" placeholder="" value="{$settings['ddxapikey']}" />
						  <span class="help-block" style="color:red;">*去订单侠网站注册账号，获取apikey。</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">美团官方api秘钥</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[meituanapikey]" class="form-control" placeholder="" value="{$settings['meituanapikey']}" />
						  <span class="help-block" style="color:red;">*去美团联盟https://union.meituan.com/注册账号，获取api秘钥。</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">美团官方媒体Appkey</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[meituanappkey]" class="form-control" placeholder="" value="{$settings['meituanappkey']}" />
						  <span class="help-block" style="color:red;">*美团联盟媒体管理——新增媒体，获取媒体appkey。</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">美团官方媒体推广位SID</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[meituanappkey_sid]" class="form-control" placeholder="" value="{$settings['meituanappkey_sid']}" />
						  <span class="help-block" style="color:red;">*美团联盟媒体管理——新增媒体，获取媒体appkey。</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">美团官方外卖红包活动ID</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[meituan_waimai_h5_url]" class="form-control" placeholder="" value="{if $settings['meituan_waimai_h5_url']}{$settings['meituan_waimai_h5_url']}{else}2{/if}" />
						  <span class="help-block" style="color:red;">*非特殊情况不要修改，默认为2</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">美团官方闪购红包活动ID</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[meituan_sc_h5_url]" class="form-control" placeholder="" value="{if $settings['meituan_sc_h5_url']}{$settings['meituan_sc_h5_url']}{else}4{/if}" />
						  <span class="help-block" style="color:red;">*非特殊情况不要修改，默认为4</span>
						</div>
					</div>
				    
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">美团团购utmSource</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[utmSource]" class="form-control" placeholder="" value="{$settings['utmSource']}" />
						  <span class="help-block" style="color:red;">*在多麦、亿起发等平台获取美团推广链接后，使用浏览器访问，得到美团推广链接：https://act.meituan.com/clover/page/adunioncps/coupon_shop?utmSource=美团utmSource&utmMedium=美团utmMedium&activity=0AlN4OtEIa</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">美团团购utmMedium</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[utmMedium]" class="form-control" placeholder="" value="{$settings['utmMedium']}" />
						  <span class="help-block" style="color:red;">*在多麦、亿起发等平台获取美团推广链接后，使用浏览器访问，得到美团推广链接：https://act.meituan.com/clover/page/adunioncps/coupon_shop?utmSource=美团utmSource&utmMedium=美团utmMedium&activity=0AlN4OtEIa</span>
						</div>
					</div>
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="myTab4" style="display:{if $_W['role']!='founder'}{else}{/if};">
				<div class="panel-heading">淘宝/饿了么设置</div>
				<div class="panel-body">
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">优惠线报、每日精选是否开启淘宝数据：</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[istao]" value="1" {if $settings['istao'] == 1}checked="true"{/if} /> 开启</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[istao]" value="0" {if $settings['istao'] == 0}checked="true"{/if} /> 关闭</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">折淘客Appkey</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[appkey]" class="form-control" placeholder="" value="{$settings['appkey']}" />
						  <span class="help-block" style="color:red;">*去折淘客注册账号，然后授权淘宝联盟账号</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">折淘客淘宝账号sid</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[sid]" class="form-control" placeholder="" value="{$settings['sid']}" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">淘宝联盟普通pid</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[tbpid]" class="form-control" placeholder="" value="{$settings['tbpid']}" />
						  <span class="help-block" style="color:red;">*如果该小程序使用自己的淘宝联盟账号，则填写普通pid</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">淘宝联盟渠道pid</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[tbqudaopid]" class="form-control" placeholder="" value="{$settings['bqudaopid']}" />
						  <span class="help-block" style="color:red;">*如果该小程序使用平台的淘宝联盟账号，佣金由平台支付，则填写渠道pid和渠道id</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">淘宝联盟渠道id</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[tbqudaoid]" class="form-control" placeholder="" value="{$settings['bqudaoid']}" />
						  <span class="help-block" style="color:red;">*如果该小程序使用平台的淘宝联盟账号，佣金由平台支付，则填写渠道pid和渠道id</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">淘口令快站链接</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[kurl]" class="form-control" placeholder="" value="{$settings['kurl']}" />
						  <span class="help-block" style="color:red;">*填写即表示使用自己的快站链接，链接格式：https://xxxx.kuaizhan.com/?淘口令</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">饿了么外卖红包活动ID</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[elmwm_promotion_scene_id]" class="form-control" placeholder="" value="{if $settings['elmwm_promotion_scene_id']}{$settings['elmwm_promotion_scene_id']}{else}20150318020002192{/if}" />
						  <span class="help-block" style="color:red;">*默认活动ID：20150318020002192，非特殊情况不需要修改</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">饿了么果蔬商超红包活动ID</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[elmsc_promotion_scene_id]" class="form-control" placeholder="" value="{if $settings['elmsc_promotion_scene_id']}{$settings['elmsc_promotion_scene_id']}{else}1585018034441{/if}" />
						  <span class="help-block" style="color:red;">*默认活动ID：1585018034441，非特殊情况不需要修改</span>
						</div>
					</div>
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="myTab5" style="display:{if $_W['role']!='founder'}{else}{/if};">
				<div class="panel-heading">特权商品设置</div>
				<div class="panel-body">
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否使用特权商品：</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[huicate]" value="1" {if $settings['huicate'] == 1}checked="true"{/if} /> 使用</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[huicate]" value="0" {if $settings['huicate'] == 0}checked="true"{/if} /> 不使用</label>
							<span class="help-block" style="color:red;">*首页商品是否使用特权商品，不使用请自行添加商品</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否使用合作商特权商品链接：</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[huicatehzs]" value="1" {if $settings['huicatehzs'] == 1}checked="true"{/if} /> 使用</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[huicatehzs]" value="0" {if $settings['huicatehzs'] == 0}checked="true"{/if} /> 不使用</label>
							<span class="help-block" style="color:red;">*如果使用合作商链接，直充和卡券商品将调跳转合作商商品页面</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">合作商ID</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[huihzsid]" class="form-control" placeholder="" value="{$settings['huihzsid']}" />
						  <span class="help-block" style="color:red;">*如果使用合作商链接请填写</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">特权商品公众号uniacid</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[huiuniacid]" class="form-control" placeholder="" value="{$settings['huiuniacid']}" />
						  <span class="help-block" style="color:red;">*如果不使用特权商品则不填</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">特权商品公众号域名</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[huidomain]" class="form-control" placeholder="" value="{$settings['huidomain']}" />
						  <span class="help-block" style="color:red;">*末尾不带/，如果不使用特权商品则不填</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">热门推荐特权商品是否使用特权商品：</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[huihot]" value="1" {if $settings['huihot'] == 1}checked="true"{/if} /> 使用</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[huihot]" value="0" {if $settings['huihot'] == 0}checked="true"{/if} /> 不使用</label>
							<span class="help-block" style="color:red;">*首页热门推荐特权商品是否使用特权商品首页推荐，不使用请自行添加商品</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否开启IOS虚拟支付：</label>
						<div class="col-sm-9 col-xs-12">
							<label class="radio-inline"><input type="radio" name="data[ios]" value="1" {if $settings['ios'] == 1}checked="true"{/if} /> 开启</label>
							&nbsp;&nbsp;&nbsp;
							<label class="radio-inline"><input type="radio" name="data[ios]" value="0" {if $settings['ios'] == 0}checked="true"{/if} /> 关闭</label>
							<span class="help-block" style="color:red;">*关闭后，直充类商品在IOS端会提示不能购买。</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">特权用户ID</label>
						<div class="col-sm-9 col-xs-12">
						  <input type="text" name="data[huiuserid]" class="form-control" placeholder="" value="{$settings['huiuserid']}" />
						  <span class="help-block" style="color:red;">*此用户ID用于绑定小程序跳转特权的上级</span>
						</div>
					</div>
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="myTab6" style="display:{if $_W['role']!='founder'}{else}{/if};">
				<div class="panel-heading">京东/拼多多/唯品会设置</div>
				<div class="panel-body">
				    <div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label">蚂蚁星球apikey</label>
							<div class="col-sm-9 col-xs-12">
							  <input type="text" name="data[apikey]" class="form-control" placeholder="" value="{$settings['apikey']}" />
							  <span class="help-block" style="color:red;">*填写即表示使用独立的联盟账户</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label">京东推广位id</label>
							<div class="col-sm-9 col-xs-12">
							  <input type="text" name="data[jdpid]" class="form-control" placeholder="" value="{$settings['jdpid']}" />
							  <span class="help-block" style="color:red;">*如果要使用平台联盟分佣则填写</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label">拼多多推广位id</label>
							<div class="col-sm-9 col-xs-12">
							  <input type="text" name="data[pddpid]" class="form-control" placeholder="" value="{$settings['pddpid']}" />
							  <span class="help-block" style="color:red;">*如果要使用平台联盟分佣则填写</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label">唯品会推广位id</label>
							<div class="col-sm-9 col-xs-12">
							  <input type="text" name="data[vippid]" class="form-control" placeholder="" value="{$settings['vippid']}" />
							  <span class="help-block" style="color:red;">*如果要使用平台联盟分佣则填写</span>
							</div>
						</div>
				</div>
			</div>
			<div role="tabpanel" class="tab-pane panel panel-default main" id="job">
				<div class="panel-heading">计划任务</div>
				<div class="panel-body">
				    <div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">优惠线报及每日精选商品同步，任务类型为访问url，每1分钟执行一次，url地址为：</label>
						<div class="col-sm-6">
							{$_W['siteroot']}addons/asterye_waimaixia_plugin_one/xbapi.php?&id={$_W['uniacid']}
						</div>
					</div>
				</div>
			</div>
		</div>
		
		<div class="form-group col-sm-12">
			<input type="submit" name="submit" value="提交" class="btn btn-primary" />
			<input type="hidden" name="token" value="{$_W['token']}" />
		</div>
	</form>
</div>

{template 'common/footer'}